#pragma once

#include <GraphicsBaseOperation.h>


class GraphicsRotateOperation : public GraphicsBaseOperation
{
public:
	GraphicsRotateOperation(GraphicsBaseItemData& itemData, QObject* parent = nullptr);

	~GraphicsRotateOperation();

	// 旋转图元
	void setRotateAngle(const QPointF& mouseScenePoint);

	// 设置以图元为中心的旋转角度(顺时针)
	QTransform getRotateTransformOnCenter(qreal angle);
};

